package com.zjp.service;

import com.zjp.pojo.NucleicTest;
import com.zjp.vo.NucleicAndDection;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface NucleicTestService {
    /**
     * 核酸检测
     */
    int nucleicTest(NucleicTest nucleicTest);
    /**
     * 我的检测记录
     */
    List<NucleicAndDection> selectMyNucleicResult(@Param("userid") long userid);
    /**
     * 核酸全部检测结果
     */
    List<NucleicAndDection> selectAllNucleicResult();
    /**
     * 查询全部用户核酸结果
     */
    List<NucleicTest> selectNucleicTestResult(String name, Date time, Integer result, Integer detectionid);

    /**
     * 录入核酸检测结果
     * @param nucleicTest
     * @return
     */
    int entryResult(NucleicTest nucleicTest);
}
